<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>

 <?php $temp_query = clone $wp_query; ?> 
			 <?php query_posts('category_name=' . $pl_category . '&showposts=' . $pl_count . '');?>

<div class="slider3">





		<div class="slider3_rotator">


			<div id="slider_<?php echo $pl_category; ?>" class="sliderwrapper">
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$featured_image = $image->guid; 
				} else {
				$featured_image = site_url('/wp-content/themes/exehill2/images/slider3_noimage.png');
				} ?>
				
				
				<div class="contentdiv">
			
					
						<div class="slider3_textbox">
						
							<div class="slider3_content">
							
								<h1 class="slider3_title"><a href=" <?php if ( $exelink = get_post_meta($post->ID, 'link', true)) {echo $exelink; } else {the_permalink();}?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?> </a></h1>
								
								<div class="slider3_text"><?php the_excerpt(); ?>
								</div>
								
								<div class="slider3_button"><a href=" <?php if ( $exelink = get_post_meta($post->ID, 'link', true)) {echo $exelink; } else {the_permalink();}?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a>
								</div>
								
							</div>
							
						</div>
						
						<div class="slider3_imagebox">
						
							<div class="slider3_image" style="background: url(<?php echo $featured_image; ?>) no-repeat; ">
							</div>
							
						</div>

				</div>
			
			
			 <?php endwhile; ?>
			</div>

		</div>
	<div id="paginate-slider_<?php echo $pl_category; ?>" class="slider3_pagination">
	<a href="#" class="toc"></a> <a href="#" class="toc anotherclass"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a> <a href="#" class="toc"></a>
	</div>

<script type="text/javascript">
featuredcontentslider.init({
	id: "slider_<?php echo $pl_category; ?>", 
	contentsource: ["inline", ""],  
	toc: "markup",  
	nextprev: ["Previous", "Next"], 
	revealtype: "click",
	enablefade: [true, 0.2],  
	autorotate: [false, 3000],  
	onChange: function(previndex, curindex){ 
	}
})
</script>
	
	</div>


 <?php $wp_query = clone $temp_query; ?>